package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by Lenovo on 2017/12/11.
 */
@Entity
@Table(name = "T_SYS_RIGHT_OP", schema = "oa", catalog = "")
public class RightOPEntity extends BaseEntity {
    private String rightId;
    private String name;
    private String eName;

    public String getRightId() {
        return rightId;
    }

    public void setRightId(String rightId) {
        this.rightId = rightId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEName() {
        return eName;
    }

    public void setEName(String eName) {
        this.eName = eName;
    }

    @Override
    public JSONObject getJSONObject() {
       JSONObject json = new JSONObject();
       json.put("ID",this.getId());
       json.put("RIGHT_ID",this.getRightId());
       json.put("NAME",this.getName());
       json.put("E_NAME",this.getEName());
       return json;
    }

    @Override
    public String getTableName() {
        return "T_SYS_RIGHT_OP";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject json = new JSONObject();
        json.put("ID","id");
        json.put("RIGHT_ID","rightId");
        json.put("NAME","name");
        json.put("E_NAME","eName");
        return json;
    }
}
